package com.wzdigit.wms.basic.mapper.core.transfer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.dtos.transfer.PicktaskDtlGoodsBySourceNo;
import com.wzdigit.wms.basic.domain.transfer.PicktaskDtlGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 拣货任务明细货品清单 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-02-25
 */
@MyBatisRepository
public interface PicktaskDtlGoodsMapper extends BaseMapper<PicktaskDtlGoods> {

    int selectCountBySnAndDocDtlId(@Param("sn") String sn, @Param("docDtlId") Long docDtlId);

    List<String> selectGoodsListByGdnDtlIds(@Param("dtlList") List<Integer> dtlList);
    
    List<PicktaskDtlGoodsBySourceNo> selectBySourceNo(@Param("sourceNo") String sourceNo);

    PicktaskDtlGoods selectByGoodsSnAndDtlIdHeadId(@Param("sn") String sn, @Param("dtlId") Integer dtlId, @Param("headerId") Integer headerId);
}
